<template>
  <div>
      <div id="he">
 <h3>分类</h3>
      <router-link to="/serch">
      <img src="/fenlei/search-input-icon.png" alt="">
      <input type="text" name="" id="" placeholder="成分新境">
      </router-link> 
          <router-link to="/homepage">取消</router-link>   
  </div> </div>
</template>

<script>
export default {

}
</script>

<style scoped>
div{
position: sticky;
top: 0;
z-index: 1000;
background-color: white;    
}
#he{
    width: 90%;
    height: 0.5rem;
    line-height: 0.5rem;  
    display: flex;
    justify-content: space-between;
    margin: auto;
}
input{
    width:2rem;
    height:0.3rem;
     background-color: #f2f2f2;
     border-radius: 0.07rem;
     border: none;
     margin-top: 0.1rem;
     text-indent: 0.4rem;
}
img{
    width: 0.2rem;
    height: 0.2rem;
    position: absolute;
    top: 0.15rem;
    left: 0.8rem;
}
a{
    color: gray;
    font-size: 0.14rem;
}
</style>